{% if not environment.web %}
{% extends 'index.html' %}
{% endif %}

{% block body %}
    <!-- PAGE -->
        <div id="page">
        <div class="news_detail">

        <div style="padding:10px;" id="p1">
        <h1>{{pageData['news'].title}}</h1>
        <h4>{{pageData['news'].abstract}}</h4>
            <div >
                <div id="linki">{{pageData['news'].body}}</div>

                {% if pageData['news'].source_url !="" or pageData['news'].source_url_alt_text != "" %}
                    <p><strong>Fonte notizia:</strong> <a href="{{pageData['news'].source_url}}" class="breadcrumb" target="_blank">{{pageData['news'].source_url_alt_text}}</a></p>
                {% endif %}
                <br />


                <p><strong>Data Pubblicazione:</strong> {{pageData['news'].publication_date|dateformat}}</p>
                <br />

                <strong>TAGS: </strong> {% for n in pageData['news'].tags %}
                <strong> <a href="#" class="breadcrumb">{{n}}</a> </strong>,&nbsp;
                {% endfor %}                <br />



            {% if pageData['news'].user %}
                <p>Inserita da: <i>{{pageData['news'].user.username}}</i></p>
            {% endif %}
            <div class="news_click" >Notizia letta <span style="color: #ff5400;">{{pageData['news'].clicks}}</span> volte</div>

 </div> </div> </div>
{% endblock %}
